package com.project.class8_23;

import javax.swing.*;

public class MyTest {
    public static void main(String[] args) {
//        JOptionPane.showMessageDialog(null,"ok");
//        System.out.println("******");

        Thread th = new Thread();
        //设置线程的优先级
        th.setPriority(10);
        //得到线程的优先级
        System.out.println(th.getPriority());
    }
}
